﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace UsersProvider.Repositories.RelationalRepositories
{
    public interface IUsersRepository
    {
        User GetUserByLoginAndPassword(string login, string password);
        User GetUserByLogin(string login);
        User GetUserByEmail(string email);
        User GetUserByConfirmationId(string confirmationId);
        User GetUserFromOpenId(string openIdURL);
        bool LoginExists(string login);
        bool EmailExists(string email);
        void InsertUser(string login, string pass, string email, string confirmationId, string lang);
        User ApproveUser(string confirmationId);
        IEnumerable<OpenId> GetUserOpenIds(string login);
        void AddUserOpenId(string login, string passMd5, string openIdUrl, string lang);
        void SetUserLanguage(string login, string lang);
    }
}
